package com.lagou.service.impl;

import com.lagou.dao.ArticleMapper;
import com.lagou.pojo.TArticle;
import com.lagou.service.ArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ArticleServiceImpl implements ArticleService {

    @Autowired
    private ArticleMapper articleMapper;

    @Override
    public List<TArticle> list(int since, int limit) {
        return articleMapper.list(since, limit);
    }

    @Override
    public int totalCount() {
        return articleMapper.totalCount();
    }
}
